<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      >



        <ui:composition template="./WEB-INF/includes-templates/template.xhtml">
            <ui:param name="pageTitle" value="#{trans.system_name}" />
            <ui:define name="content" >
                <h3>#{trans.adv_search}</h3>
                <br />
                <h:form id="searchAdvBar">
                <f:view locale="#{locale.locale}" >
                    <h:outputText value="#{trans.act_name}   "></h:outputText>
                    <p:inputText  id="search"  value="#{searchBean.searchWord}" ></p:inputText>
                    <p:watermark for="search" value="#{trans.search}..." /> 
                    <p:commandButton  icon="ui-icon-search"  action="#{searchBean.search()}" title="#{trans.search}" ajax="false">
                        <f:setPropertyActionListener target="#{schoolmat.selectedSchoolMat}" value="#{schoolmat.pickSearchwordSubjMats(searchBean.searchWord,schoolmat.selectedSubject)}" />
                  
                    </p:commandButton>

                    <br />
                    <br />
                    <h:outputText value="#{trans.subject}   "></h:outputText>
                </f:view>
                <f:view locale="#{locale.locale}" >
                    <p:inputText  id="predmetSearch"  value="#{schoolmat.selectedSubject}" ></p:inputText>
                      <p:selectBooleanCheckbox id="predmet"></p:selectBooleanCheckbox>
                </f:view>
            </h:form>
               
            </ui:define>
        </ui:composition>


</html>
